﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.ProjectStatuss;
using LeadThing.AbpZeroTemplate.EntityFramework;

namespace LeadThing.AbpZeroTemplate.ProjectStatuss.EntityMapper.ProjectStatuss
{

    /// <summary>
    /// 年度拟实施稳评的项目情况的数据配置文件
    /// </summary>
    public class ProjectStatusCfg : EntityTypeConfiguration<ProjectStatus>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public ProjectStatusCfg()
        {
            ToTable("ProjectStatus", AbpZeroTemplateConsts.SchemaName.Basic);


            // 情况名称
            Property(a => a.SituationTitle).HasMaxLength(100);
            // 备注
            Property(a => a.Remarks).HasMaxLength(500);
        }
    }
}